package com.dnjn.mes.biz.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AddrCode {
    MAINTAIN("MAINTAIN", AddrType.STATUS, "维修状态", "MAINTAIN"),
    AWAIT("AWAIT", AddrType.STATUS, "故障状态", "AWAIT"),
    STOP("STOP", AddrType.STATUS, "停止状态", "STOP"),
    RUNNING("RUNNING", AddrType.STATUS, "运行状态", "RUNNING"),

    CAPACITY("CAPACITY", AddrType.CAPACITY, "产能", "-"),
    BEAT("BEAT", AddrType.BEAT, "节拍", "-"),
    //EXCEPT("EXCEPT","异常")
    ;

    @JsonValue
    @EnumValue
    String name;
    AddrType addrType;
    String label;
    String status;
}
